package com.xiaohao.news.controller;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiaohao.news.common.R;
import com.xiaohao.news.entity.NewsType;
import com.xiaohao.news.service.NewsTypeService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/haha")
public class TestController {

    @Autowired
    private NewsTypeService newsTypeService;

    @GetMapping("/haha")
    public String getUser(@RequestParam("user") String userId) {
        // 处理接收到的参数
        return "User ID: " + userId;
    }

    @Test
    public void testNewsId() {

        Long typeId = new Long(4);

    }



}
